package cn.tedu.cs.baking.response;

import lombok.Getter;

@Getter
public enum AppCode {
    SUCCESS(0,"请求成功"),
    FAILED(10001,"请求失败"),
    VALIDATE_ERROR(10002,"参数校验失败"),
    APP_ERROR(50001,"业务异常"),
    RESPONSE_BACK_ERROR(10003,"response返回异常"),
    FILE_ERROR(50002, "文件错误"),;

    private int code;
    private String msg;

    AppCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
